2023-10-11 18:45:01
A bit of information about the article.
This article deals with AUTOMATIC1111/stable-diffusion-webui on Windows 11. Linux would have slightly different steps - more specifically around webui-user.bat
/webui-user.sh
- but they're still both pretty similar and use the same environment variable names, just different scripting languages.
If you have multiple GPUs, you can use the following line to choose between each of them:
set CUDA_VISIBLE_DEVICES =0
Note that 0 is for GPU number 1, and 1 and for GPU number 2. If you have more, then the number would continue...
You can find out which GPU is assigned to which number by opening Task Manager -> Performance, where GPU 0 would have the value 0, and GPU 1 would have the value 1.